<div class="container" ng-app="webApp" ng-controller="user">

    <div class="uCenter">
        <ul class="unav">
            <li><a href="/users/setUserInfo">个人资料</a></li>
            <li><a href="/users/setUserLogo">修改头像</a></li>
            <li class="active"><a href="/users/setUserPsd">修改密码</a></li>

        </ul>
        <div class="uInfos">
            <form class="form-horizontal"  name="reSetForm" ng-submit="processReSetForm(reSetForm.$valid)" novalidate>
                <div class="form-group">

                    <div class="col-sm-4 col-sm-offset-2">
                        <span style="display: none;" class="submitwarning"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">原密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" name="oldPassword" ng-model="reSetFormData.oldPassword" ng-minlength="6" ng-maxlength="12" ng-pattern="/^[x00-x7f]+$/" placeholder="请输入原密码" required />
                        <label for="inputError" class="control-label text-danger" ng-show="reSetForm.oldPassword.$invalid && !reSetForm.oldPassword.$pristine"><i class="fa fa-times-circle-o"></i> 密码格式不正确</label>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">新密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" name="password" id="userPassword" ng-model="reSetFormData.password" ng-minlength="6" ng-maxlength="12" ng-pattern="/^[x00-x7f]+$/" placeholder="请输入新密码" required/>
                        <label for="inputError" class="control-label text-danger"  ng-show="reSetForm.password.$invalid && !reSetForm.password.$pristine"><i class="fa fa-times-circle-o"></i> 密码格式不正确</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" pw-check="userPassword" name="confirmPassword" ng-model="reSetFormData.confirmPassword" placeholder="请再次输入密码" ng-minlength="6" ng-maxlength="12" ng-pattern="/^[x00-x7f]+$/" required/>
                        <label for="inputError" class="control-label text-danger" ng-show="reSetForm.confirmPassword.$invalid && !reSetForm.confirmPassword.$pristine"><i class="fa fa-times-circle-o"></i> 两次输入密码不一直</label>

                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-blue modify-btn" ng-disabled="reSetForm.$invalid">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>


</div> <!-- /container -->